package com.share.finance.risk.rules.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.share.common.common.Page;
import com.share.finance.risk.rules.model.db.Project;
import com.share.finance.risk.rules.model.vo.ProjectPageReq;
import com.share.finance.risk.rules.model.vo.VariateVo;

import java.util.Collection;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author author
 * @since 2021-11-24
 */
public interface IProjectService extends IService<Project> {
    //初始化工程配置----这个由加载kie容器,他来执行初始化
    List<Project> initProject();

    Project getProject(String projectCode, String eventCode);

    List<VariateVo> listByProductCodeAndEventType(String productCode, String eventType);

    Page<Project> pageList(ProjectPageReq req);

    Map<String, Project> mapByProjectIds(Collection<String> projectIds);

    Integer activateProjectVersion(Long projectId, String version);
}
